<configuration>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://{{ hdfs_cluster_name }}</value>
    </property>
    <property>
        <name>io.file.buffer.size</name>
        <value>131072</value>
        <description>默认4KB，调整为128KB</description>
    </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>{{ hadoop_install_path }}/hadoop/tmp</value>
    </property>
    <property>
        <name>ha.zookeeper.quorum</name>
        <value>{{ zookeeper_quorum }}</value>
    </property>
    <property>
        <name>fs.trash.interval</name>
        <value>1440</value>
    </property>
    <property>
        <name>fs.permissions.umask-mode</name>
        <value>007</value>
    </property>

<!-- 开启Kerberos认证  开始-->
    <property>
        <name>hadoop.security.authentication</name>
        <value>kerberos</value>
    </property>
    <property>
        <name>hadoop.security.authorization</name>
        <value>true</value>
    </property>
    <property>
        <name>hadoop.rpc.protection</name>
        <value>authentication</value>
    </property>
    <property>
        <name>hadoop.security.auth_to_local</name>
        <value>DEFAULT</value>
    </property>
<!-- 开启Kerberos认证  结束 -->

<!-- 配置代理用户 开始-->
    <property>
        <name>hadoop.proxyuser.router.hosts</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.router.users</name>
        <value>*</value>
    </property>
    
    <property>
        <name>hadoop.proxyuser.yarn.hosts</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.yarn.users</name>
        <value>*</value>
    </property>

    <property>
        <name>hadoop.proxyuser.hive.hosts</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.hive.users</name>
        <value>*</value>
    </property>

    <property>
        <name>hadoop.proxyuser.{{ owner }}.hosts</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.{{ group }}.groups</name>
        <value>*</value>
    </property>
<!-- 配置代理用户 结束-->
    
<!-- 调优 start -->
    <property>
        <name>ipc.8020.callqueue.impl</name>
        <value>org.apache.hadoop.ipc.FairCallQueue</value>
    </property>
    <property>
    　　<name>ipc.8020.backoff.enable</name>
    　　<value>true</value>
    </property>
<!-- 调优 end -->
</configuration>
